


function queryUser(){
   var formParams=$("#queryForm").serialize();
   var query=Qs.parse(formParams);
   console.log(query)
   $("#userTb").bootstrapTable("refresh",{query})
}

function queryParams(params){
     var formParams=$("#queryForm").serialize();
     var query=Qs.parse(formParams);
     Object.assign(params,query);
    return params;
}


function actionFormatter(){
    let edit=`<button id="one" class="btn btn-info btn-sm Detail ss" onclick="dai()">关闭</button>`;

    return edit;
}
/*function zhuangtai(value) {
    if(value=="待审核"){
        $("#one").val("审核")
    }
    return value;
}*/

$.get("/hh/statevv")
    .done(list=>{
        list.forEach(function(row){
            var opt=$("<option/>");
            opt.val(row.id);
            opt.text(row.statename);
            opt.appendTo("#queryForm [name=state]");
        });
    });

//关闭
// function dai(a,b,row) {
//     var arr= $("#hetong [name=state]").val(row.state);
//     let s="";
//     if(arr==4){
//         s="审核";
//     }
//     return s;
// }


// $.get("sys/role/list")
//     .done(list=>{
//         list.forEach(function(role){
//             var opt=$("<option/>");
//             opt.val(role.id);
//             opt.text(role.roleName);
//             opt.appendTo("#queryForm [name=roleId]");
//         });
//     });


var action ={
    "click .ss":function(a,b,row){

    }
}




function detailFormatter(index,row) {
    let html=`<table class="table table-bordered ">
            <tr>
            <td>业主姓名</td>
            <td>业主电话</td>
            <td>楼盘名称</td>
            <td>楼盘地址</td>
            <td>楼栋</td>
            <td>图片</td>
            </tr>
           `;
    console.log(row)

    html+=`<tr>
                  <td>${row.detailed.owner}</td>
                  <td>${row.detailed.ownerphone}</td>
                  <td>${row.detailed.bgnames}</td>
                  <td>${row.detailed.bgaddress}</td>
                  <td>${row.detailed.lg}</td>
                   <td>${row.images.images1}</td>
           </tr>`

    html+=` </table>`;
    return html;
}
